package com.xiaojun.whut.Service;

import com.xiaojun.whut.Entity.User;
import org.springframework.data.domain.Page;
import org.springframework.web.bind.annotation.RequestParam;

import java.awt.print.Book;
import java.util.List;

/**
 * @author 鲁佳磊
 * @create 2020-11-02 23:31
 */
public interface PcAdminService {


    int getUserCountByLikeUserName(String username);            //得到使用模糊搜索得到的用户的个数

    List<User> getUserListByPageAndLikeUserName(String username,int pageStart,int pageSize);//使用的模糊搜索得到的一个user的列表

    String getAllUserList(String query,int pageNum,int pageSize) throws Exception;

    String addUserService( String username,  String password,  String email, String phoneNumber, String collage,  String sex) throws Exception;

    String updateUserState(String phoneNumber, boolean enable) throws Exception;

    String deleteUserById(String phoneNumber) throws Exception;

    String editUserInfo(String username,  String password,  String email, String phoneNumber, String collage,  String sex) throws Exception;

    String updateAuthorites(String phoneNumber,String authorities) throws Exception;

}
